<div id="gist">
<h1>Editing Gist</h1>
<%= error_messages_for :gist %>
<% form_for(@gist) do |f| %>
  <p>
	<label>Title:</label>
	<%= f.text_field :title %>  
  </p>
  <p>
    <label>The Gist:</label>
    <%= f.text_area :result, :maxlength => 500 %>
  </p>
  <p>
    <label>Citation Url:</label>
	<% fields_for :citation do |c| %>
    	<%= c.text_field :url %>
  	<% end %>
  </p>
  <p>
    <label>Tags:</label>
    <%= f.text_field :tag_list %>
  </p>
  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>
</div>